Skip to content

Instantly share code, notes, and snippets.

@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 19, 2026 19:59
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@lltx
lltx / terminal-setup.md
Last active July 19, 2026 19:54
🚀 现代化终端配置指南 - Ghostty + Zoxide + Yazi + Oh-My-Zsh

🚀 现代化终端配置指南

Ghostty + Zoxide + Yazi + Oh-My-Zsh 完整配置

📦 工具列表

  • Ghostty - 现代化 GPU 加速终端模拟器
  • Zoxide - 智能目录跳转工具(cd 的智能替代)
  • Yazi - 快速终端文件管理器
  • Oh-My-Zsh - Zsh 配置框架
@johnlindquist
johnlindquist / scriptable-config-wezterm.md
Last active July 19, 2026 19:53
Why WezTerm: The AI-Native Terminal for the Agentic Era

Why WezTerm: The AI-Native Terminal for the Agentic Era

The Thesis

We are entering an era where AI agents can read, write, and modify configuration files on your behalf. In this new paradigm, the best tool is no longer the one with the prettiest GUI or the most menu options—it's the one with the most programmable surface area.

WezTerm is that tool for terminals.

The Terminal Landscape in 2025

@kashifulhaque
kashifulhaque / NvChad.md
Last active July 19, 2026 19:52
Neovim NvChad keybinds

Neovim keybinds

  • Capital letters do the opposite of small letters in command (Press shift to trigger capital letters)
  • _ (underscore) to move the cursor at the beginning of line (doesn't switch to insert mode)
    • 0 (zero) moves the cursor to the zeroth position of the line (doesn't switch to insert mode)
  • $ (dollar) to move the cursor at the end of line (doesn't switch to insert mode)
  • d$ will delete from wherever your cursor is till the end of the line
  • f<character> to move cursor to the first occurrence of <character>
    • f( to move cursor to first occurence of (
  • t<character> to move cursor to upto but not on the first occurrence of <character>
  • t( to move cursor to first occurence of (
@mosgaragedev
mosgaragedev / README.md
Created July 19, 2026 19:47 — forked from Yukaii/README.md
Automated script for launching and retrying Oracle Cloud's Always-Free Tier instance with logging functionality

Script to Launch Always-Free Tier Machine on Oracle Cloud

The instance resource is often at full capacity. Therefore, we should create a script to automatically retry launching the instance at regular intervals.

The script also includes basic logging and will stop launching once you have successfully launched the instance.

Prerequisites

  • jq
  • oci (with correct setup)
superwhite() { swift - "$1" "${1%.*}-hdr.jpg" <<'SW'
import Foundation; import CoreGraphics; import ImageIO; import UniformTypeIdentifiers
let a = CommandLine.arguments
guard a.count >= 3, let s = CGImageSourceCreateWithURL(URL(fileURLWithPath: a[1]) as CFURL, nil),
let c = CGImageSourceCreateImageAtIndex(s, 0, nil) else { print("usage: superwhite image.png"); exit(1) }
let w = c.width, h = c.height, r = w * 4
var b = [UInt8](repeating: 0, count: r * h)
let x = CGContext(data: &b, width: w, height: h, bitsPerComponent: 8, bytesPerRow: r,
space: CGColorSpace(name: CGColorSpace.sRGB)!, bitmapInfo: CGImageAlphaInfo.premultipliedLast.rawValue)!
x.setFillColor(red: 1, green: 1, blue: 1, alpha: 1); x.fill(CGRect(x: 0, y: 0, width: w, height: h))
@jboner
jboner / latency.txt
Last active July 19, 2026 19:44
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@mizchi
mizchi / simd-lexer-pipeline.en.md
Last active July 19, 2026 19:43
SIMD Lexer Pipeline: classify, context carving, coalesce, compress (日本語 / English)

SIMD Lexer Pipelines: Classify, Carve, Coalesce, Compress

I prototyped a v128-based lexer optimization using the JSON parser in moonbitlang/core as the target. This note distills the design into a SIMD lexer pipeline that can be applied to JSON, JavaScript, and other languages.

The short version is that bitmasks are indeed the key abstraction. However, the main opportunity is not matching CST node kinds after construction. It is classifying input bytes and extracting only the positions where lexical context can change.

The pipeline

A typical pipeline can be decomposed as follows:

{
"meta": {
"theme": "consultant-polished",
"lastModified": "2026-07-19T00:00:00.000Z"
},
"basics": {
"name": "Andrew Gentry",
"label": "Salesforce Solution Consultant & Application Architect",
"email": "agentry1226@gmail.com",
"phone": "(270) 935-7345",
@therebelrobot
therebelrobot / strudel_learning.md
Last active July 19, 2026 19:29
Strudel Learning Course

🎶 Strudel Self-Study Workshop

A hands-on introduction to live-coded music in the browser


📖 Overview

Strudel is a JavaScript-derived live-coding environment that lets you make music directly in a browser REPL. Each snippet you evaluate becomes part of a real-time musical texture.